﻿// My methods here.
//-----------------------------------------------------------------------
// <Copyright file=LienHe company=DHPD>
// Copyright (c) DHPD Corporation (http://dhpd.edu.vn). All rights reserved.
// </copyright>
// <author>HP</author>
//-----------------------------------------------------------------------


using System;
using System.Collections.Generic;
using KM.DAT;
using KM.ENT;
using KM.Models;

namespace KM.BUS
{
    /// <summary>
    /// This is busLienHe class
    /// </summary>

    public class busLienHe
    {
        public busLienHe()
        {
            //
            // TODO: Add constructor logic here
            //
        }
        public void createEdit(entLienHe entLH)
        {
            datLienHe datLH = new datLienHe();
            datLH.createEdit(entLH);
        }
        public List<entLienHe> getAll()
        {
            datLienHe datLH = new datLienHe();
            List<entLienHe> lst = new List<entLienHe>();
            lst = datLH.getAll();
            return lst;
        }
        public entLienHe getInfo(int Id)
        {
            datLienHe datLH = new datLienHe();
            entLienHe entLHNew = new entLienHe();
            entLHNew = datLH.getInfo(Id);
            return entLHNew;
        }
        public bool delete(int Id)
        {
            datLienHe datLH = new datLienHe();
            datLH.delete(Id);
            return true;
        }
    }
}
